import request from '@/utils/request'

// 查询接机订单列表
export function listPickAirport(query) {
    return request({
        url: '/orders/pickAirport/list',
        method: 'get',
        params: query
    })
}

// 司机查询接机订单列表
export function findAll(query) {
    return request({
        url: '/orders/pickAirport/findAll',
        method: 'get',
        params: query
    })
}

// 查询接机订单详细
export function getPickAirport(pickairportId) {
    return request({
        url: '/orders/pickAirport/' + pickairportId,
        method: 'get'
    })
}

// 新增接机订单
export function addPickAirport(data) {
    return request({
        url: '/orders/pickAirport',
        method: 'post',
        data: data
    })
}

// 修改接机订单
export function updatePickAirport(data) {
    return request({
        url: '/orders/pickAirport',
        method: 'put',
        data: data
    })
}

// 删除接机订单
export function delPickAirport(pickairportId) {
    return request({
        url: '/orders/pickAirport/' + pickairportId,
        method: 'delete'
    })
}
export function updateByOrder(pickairportId) {
    return request({
        url: '/orders/pickAirport/updateBYOrderCard/' + pickairportId,
        method: 'get'
    })
}
